package com.rickpan.dto.contacts;

import jakarta.validation.constraints.Size;

/**
 * 更新好友信息请求DTO
 */
public class UpdateFriendRequest {

    @Size(max = 50, message = "好友分组名称长度不能超过50个字符")
    private String groupName;

    @Size(max = 100, message = "好友备注长度不能超过100个字符")
    private String remark;

    // 构造函数
    public UpdateFriendRequest() {}

    public UpdateFriendRequest(String groupName, String remark) {
        this.groupName = groupName;
        this.remark = remark;
    }

    // Getter和Setter方法
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "UpdateFriendRequest{" +
                "groupName='" + groupName + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
